package com.example.lib_mvicore.ui

import android.os.Bundle
import android.view.View
import com.example.lib_mvicore.IView

/**
 * @author yaotianxue
 * @description
 * @date 2024/10/25
 */
abstract class BaseMVIFragment:BaseLazyLoadFragment(), IView {

    /**
     * viewomdel创建
     */
    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        generateViewModel()
    }

    /**
     * 状态处理
     */
    override fun onResume() {
        super.onResume()
        handleState()
    }
    abstract fun generateViewModel()

}